import { ResponseListCards } from '@/types/apiType';

import request from '../utils/request';
import { RequestConfig } from '../utils/request/type';

/**
 * @description
 * @tags 卡片接口
 * @summary 卡片列表
 * @request get:/api/cards/list
 */
export const apiCardsListByGet = (params: { goodsId: number }, config?: RequestConfig) =>
  request.get<ResponseListCards>(`/api/cards/list`, params, config).then((res) => res?.result);
